﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001ED RID: 493
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class Chapter : IMessage<Chapter>, IMessage, IEquatable<Chapter>, IDeepCloneable<Chapter>, IBufferMessage
	{
		// Token: 0x1700067C RID: 1660
		// (get) Token: 0x06001645 RID: 5701 RVA: 0x0003F521 File Offset: 0x0003D721
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<Chapter> Parser
		{
			get
			{
				return Chapter._parser;
			}
		}

		// Token: 0x1700067D RID: 1661
		// (get) Token: 0x06001646 RID: 5702 RVA: 0x0003F528 File Offset: 0x0003D728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChapterReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700067E RID: 1662
		// (get) Token: 0x06001647 RID: 5703 RVA: 0x0003F53A File Offset: 0x0003D73A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return Chapter.Descriptor;
			}
		}

		// Token: 0x06001648 RID: 5704 RVA: 0x0003F541 File Offset: 0x0003D741
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Chapter()
		{
		}

		// Token: 0x06001649 RID: 5705 RVA: 0x0003F554 File Offset: 0x0003D754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Chapter(Chapter other) : this()
		{
			this.cEIPBNKKPNA_ = ((other.cEIPBNKKPNA_ != null) ? other.cEIPBNKKPNA_.Clone() : null);
			this.cHIDICDEGKC_ = other.cHIDICDEGKC_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600164A RID: 5706 RVA: 0x0003F5A5 File Offset: 0x0003D7A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Chapter Clone()
		{
			return new Chapter(this);
		}

		// Token: 0x1700067F RID: 1663
		// (get) Token: 0x0600164B RID: 5707 RVA: 0x0003F5AD File Offset: 0x0003D7AD
		// (set) Token: 0x0600164C RID: 5708 RVA: 0x0003F5B5 File Offset: 0x0003D7B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChapterBrief CEIPBNKKPNA
		{
			get
			{
				return this.cEIPBNKKPNA_;
			}
			set
			{
				this.cEIPBNKKPNA_ = value;
			}
		}

		// Token: 0x17000680 RID: 1664
		// (get) Token: 0x0600164D RID: 5709 RVA: 0x0003F5BE File Offset: 0x0003D7BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Waypoint> CHIDICDEGKC
		{
			get
			{
				return this.cHIDICDEGKC_;
			}
		}

		// Token: 0x0600164E RID: 5710 RVA: 0x0003F5C6 File Offset: 0x0003D7C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as Chapter);
		}

		// Token: 0x0600164F RID: 5711 RVA: 0x0003F5D4 File Offset: 0x0003D7D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(Chapter other)
		{
			return other != null && (other == this || (object.Equals(this.CEIPBNKKPNA, other.CEIPBNKKPNA) && this.cHIDICDEGKC_.Equals(other.cHIDICDEGKC_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001650 RID: 5712 RVA: 0x0003F628 File Offset: 0x0003D828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.cEIPBNKKPNA_ != null)
			{
				num ^= this.CEIPBNKKPNA.GetHashCode();
			}
			num ^= this.cHIDICDEGKC_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001651 RID: 5713 RVA: 0x0003F672 File Offset: 0x0003D872
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001652 RID: 5714 RVA: 0x0003F67A File Offset: 0x0003D87A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001653 RID: 5715 RVA: 0x0003F684 File Offset: 0x0003D884
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.cEIPBNKKPNA_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.CEIPBNKKPNA);
			}
			this.cHIDICDEGKC_.WriteTo(ref output, Chapter._repeated_cHIDICDEGKC_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001654 RID: 5716 RVA: 0x0003F6D4 File Offset: 0x0003D8D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.cEIPBNKKPNA_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CEIPBNKKPNA);
			}
			num += this.cHIDICDEGKC_.CalculateSize(Chapter._repeated_cHIDICDEGKC_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001655 RID: 5717 RVA: 0x0003F728 File Offset: 0x0003D928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(Chapter other)
		{
			if (other == null)
			{
				return;
			}
			if (other.cEIPBNKKPNA_ != null)
			{
				if (this.cEIPBNKKPNA_ == null)
				{
					this.CEIPBNKKPNA = new ChapterBrief();
				}
				this.CEIPBNKKPNA.MergeFrom(other.CEIPBNKKPNA);
			}
			this.cHIDICDEGKC_.Add(other.cHIDICDEGKC_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001656 RID: 5718 RVA: 0x0003F78D File Offset: 0x0003D98D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001657 RID: 5719 RVA: 0x0003F798 File Offset: 0x0003D998
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 58U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.cHIDICDEGKC_.AddEntriesFrom(ref input, Chapter._repeated_cHIDICDEGKC_codec);
					}
				}
				else
				{
					if (this.cEIPBNKKPNA_ == null)
					{
						this.CEIPBNKKPNA = new ChapterBrief();
					}
					input.ReadMessage(this.CEIPBNKKPNA);
				}
			}
		}

		// Token: 0x0400092A RID: 2346
		private static readonly MessageParser<Chapter> _parser = new MessageParser<Chapter>(() => new Chapter());

		// Token: 0x0400092B RID: 2347
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400092C RID: 2348
		public const int CEIPBNKKPNAFieldNumber = 1;

		// Token: 0x0400092D RID: 2349
		private ChapterBrief cEIPBNKKPNA_;

		// Token: 0x0400092E RID: 2350
		public const int CHIDICDEGKCFieldNumber = 7;

		// Token: 0x0400092F RID: 2351
		private static readonly FieldCodec<Waypoint> _repeated_cHIDICDEGKC_codec = FieldCodec.ForMessage<Waypoint>(58U, Waypoint.Parser);

		// Token: 0x04000930 RID: 2352
		private readonly RepeatedField<Waypoint> cHIDICDEGKC_ = new RepeatedField<Waypoint>();
	}
}
